<#list contractList as contract>
<tr onclick="selectFunction(this)" ondblclick = "selectStyle()" 
			<#if contract.contractAuditStatus=='AUDIT_STATUS-AUDIT_30'>
    			class="notAccColor"
    		<#elseif contract.contractAuditStatus=='AUDIT_STATUS-AUDIT_20'>  
	     		class="accColor"
     		<#elseif contract.contractAuditStatus=='AUDIT_STATUS-AUDIT_10'>  
	     		class="waitColor"
			</#if>>
			<td><p class='table-No'>${(pageNo -1) * pageSize + contract_index+1}</p></td>
            <td>
            <#if contractFlag =='0'>
            	<p class='table-cghth'><#if contract.contractMaterialNO??>${contract.contractMaterialNO}</#if></p></td>
            <#else>
            	<p class='table-cghth linkBox' onclick="popup('1000px','650px','${adminUri}/purchase/contract/viewContract?id=${contract.id?c}')"><#if contract.contractMaterialNO??>${contract.contractMaterialNO}</#if></p></td>
            </#if>
            <td><p class='table-cgdlsl'><#if contract.purchaseType??>${dict.getDictName(contract.purchaseType)}</#if></p></td>
            <td><p class='table-cgghs'><#if contract.ognizationNameB??>${contract.ognizationNameB}</#if></p></td>
            <td><p class='table-cgzl textRight'><#if contract.materialQuantity??>${contract.materialQuantity}</#if></p></td>
            <td><p class='table-cgdlsl textRight'><#if contract.contractMaterialQuantity??>${contract.contractMaterialQuantity}</#if></p></td>
            <td><p class='table-cgdlje textRight'><#if contract.contractAmount??>${contract.contractAmount}</#if></p></td>
            <td><p class='table-cgqdrq'><#if contract.contractDateTime??>${(contract.contractDateTime)?string("yyyy-MM-dd")}</#if></p></td>
            <td><p class='table-cgjsrq'></p></td>
            <#if contractFlag =='0'>
            <#else>
            	<td><p class='table-cgyddl'></p></td>
           		<td><p class='table-cgsjdl'></p></td>
            </#if>
            <td><p class='table-cgcjr'><#if contract.createBy.firstName??>${contract.createBy.firstName}</#if></p></td>
            <td><p class='table-cgcjrq'><#if contract.createDate??>${(contract.createDate)?string("yyyy-MM-dd")}</#if></p></td>
            <input type ='hidden' class = 'id' value = '${contract.id}' disabled='disabled'>
            <#if contract.contractMaterialNO?exists&contract.contractMaterialNO!=''>
    			<input type ='hidden' class = 'contractMaterialNO' value = '${contract.contractMaterialNO}' disabled='disabled'>
    		<#else>  
	     		<input type ='hidden' class = 'contractMaterialNO' value = '' disabled='disabled'>
			</#if>
			<#if contract.ognizationNameB?exists&contract.ognizationNameB!=''>
    			<input type ='hidden' class = 'ognizationNameB' value = '${contract.ognizationNameB}' disabled='disabled'>
    		<#else>  
	     		<input type ='hidden' class = 'ognizationNameB' value = '' disabled='disabled'>
			</#if>
			<#if contract.bankName?exists&contract.bankName!=''>
    			<input type ='hidden' class = 'bankName' value = '${contract.bankName}' disabled='disabled'>
    		<#else>  
	     		<input type ='hidden' class = 'bankName' value = '' disabled='disabled'>
			</#if>
			<#if contract.bankAccountNo?exists&contract.bankAccountNo!=''>
    			<input type ='hidden' class = 'bankAccountNo' value = '${contract.bankAccountNo}' disabled='disabled'>
    		<#else>  
	     		<input type ='hidden' class = 'bankAccountNo' value = '' disabled='disabled'>
			</#if>
			<#if contract.contractMaterialQuantity?exists>
    			<input type ='hidden' class = 'contractMaterialQuantity' value = '${contract.contractMaterialQuantity}' disabled='disabled'>
    		<#else>  
	     		<input type ='hidden' class = 'contractMaterialQuantity' value = '' disabled='disabled'>
			</#if>
			<#if contract.contractAmount?exists>
    			<input type ='hidden' class = 'contractAmount' value = '${contract.contractAmount}' disabled='disabled'>
    		<#else>  
	     		<input type ='hidden' class = 'contractAmount' value = '' disabled='disabled'>
			</#if>
</tr>
</#list>